Set

Function

This API is used for setting Thermal > Fire Detection parameter.

Request Message

Parameter Description

See Thermal > Fire Detection > Request Message >Parameter Description > Table 2 Get Parameter description

Sample:

POST /API/Thermal/Setup/FireDetection/Set HTTP/1.1
{
    "version": "1.0",
    "data": {
        "channel_info": {"CH2": {
            "status": "Online",
            "detection": {
                "switch": true,
                "sensitivity": 50
            },
            "region_shield": {"region_area_info": [{
                "id_switch": true,
                "area_id": 1,
                "area_name": "Fire Mark1",
                "point_num": [
                    3,
                    8
                ],
                "rule_area": {
                    "x1": 0,
                    "y1": 0,
                    "x2": 0,
                    "y2": 0,
                    "x3": 0,
                    "y3": 0,
                    "x4": 0,
                    "y4": 0,
                    "x5": 0,
                    "y5": 0,
                    "x6": 0,
                    "y6": 0,
                    "x7": 0,
                    "y7": 0,
                    "x8": 0,
                    "y8": 0
                }
            }]},
            "chn_index": "CH2",
            "page": "chn_fire_detection",
            "selectEditRow": 0
        }},
        "page_type": "ChannelConfig"
    }
}

Response Message

none.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {}
}

Error Code

See Response message body and general error_code for more information.